package com.westos.userauth.dao.impl;

import com.westos.userauth.dao.RoleTypeDao;
import com.westos.userauth.dao.mybatis.RoleTypeDAO;
import com.westos.userauth.domain.RoleType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

//史思潮
@Service
public class MybatisRoleTypeDao implements RoleTypeDao {

    @Autowired
    private RoleTypeDAO roleTypeDAO;
    @Override
    public int insertRoleType(RoleType roleType) {
        return roleTypeDAO.insertRoleType(roleType);
    }

    @Override
    public RoleType queryRoleTypeById(String roleTypeId) {
        return roleTypeDAO.queryRoleTypeById(roleTypeId);
    }
}
